<?php

class SiteController extends Controller
{
public $layout='//layouts/test';
	public function actionIndex() {

		$anuncios=Anuncio::model()->findAllByAttributes(array('tipo'=>1));

		$this->render('index',array('anuncios'=>$anuncios));
	}

	public function actionColegial() {
		$this->render('colegial');
	}
	public function actionLaempresa() {
		$this->render('laempresa');
	}
	public function actionContacto() {
		$this->render('contacto');
	}
}

?>